fix(启动器): 版本查询恢复后台线程异步语义 - #2716
Conversation
OneDragon-Anything#2715 合入的版本缓存方案在主线程读缓存前仍可能同步触网,恢复原版 QThread 异步架构: - fetch_launcher_version_info 在后台线程查询并填缓存 - get_launcher_version_info 只读缓存不触网,主线程构造下载项安全
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
我从 完整调用链:
另外两个可能触发 资源管理页的 launcher_download_card.py:23 因此当前生产代码中不存在 |
为什么改
#2715 合入的版本缓存方案里,get_launcher_version_info 仍保留同步网络查询路径(缓存未命中时主线程会触网)。原版架构是 QThread 后台查询 + 信号回传,重构时把查询写成了同步。本 PR 恢复异步语义:网络请求只在后台线程发生,主线程只读缓存。
改动要点
关联
承接 #2715(已合并)